package com.weipai.education.model;

import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.Date;

@Data
@Accessors(chain = true)
public class UserCategory {
    private Integer id;

    private Date createTime;

    private Date updateTime;

    @NotBlank(message = "类别名称不能为空")
    private String name;

    @NotNull(message = "加盟费用不能为空")
    private Integer joinFee;

    private Integer status;

    @NotNull(message = "推荐提成比例不能为空")
    private Integer recommendRate;

    @NotNull(message = "推荐人拿货奖励不能为空")
    private BigDecimal goodsReward;

    @NotNull(message = "区域加盟提成比例不能为空")
    private Integer areaRate;

    @NotNull(message = "区域拿货奖励不能为空")
    private BigDecimal areaGoodsReward;

    @NotNull(message = "是否开放表示不能为空")
    private Integer dispark;
    
}